export default  [
  {
    type: 'select',
    props: { label: '类型',},
    id: 'selectValue',
    innerComponentProps: {
      filterable:true,
      //filterMethod:(v:string)=>{console.log('filter',v)},     // 输入时执行，remoteMethod优先级更高
      // remote:true,                        
      // remoteMethod:(v:string)=>{console.log('search',v)},   // 停止输入时执行
      multiple: true,
      selectOptions: [
        { label: '商品类型1', value: '1' },
        { label: '商品类型2', value: '2' },
        { label: '商品类型3', value: '3' },
      ],
    },
  },
  {
    type: 'cascader',
    props: { label: '地区' },
    id: 'cascaderValue',
    innerComponentProps: {
      props: { label: 'title', value: 'value', children: 'children' },
      changeOnSelect: true,
      clearable: true,
      showSearch: true,
      options: [
        {
          title: '1',
          value: '1',
          children: [
            {
              title: '1-1',
              value: '1-1',
              children: [
                {
                  title: '1-1-1',
                  value: '1-1-1',
                },
                {
                  title: '1-1-2',
                  value: '1-1-2',
                },
              ],
            },
            {
              title: '1-2',
              value: '1-2',
              children: [
                {
                  title: '1-2-1',
                  value: '1-2-1',
                },
                {
                  title: '1-2-2',
                  value: '1-2-2',
                },
              ],
            },
          ],
        },
      ],
    },
  },
  {
    type: 'tree',
    props: { label: '角色' },
    innerComponentProps: {
      nodekey: 'id',
      multiple: true,
      props: { children: 'children', label: 'title' },
      showCheckbox: true,
      data: [
        {
          id: '1',
          value: '1',
          title: 'a',
          children: [
            { id: '1-1', title: 'a1', value: '1-1' },
            { id: '1-2', title: 'a2', value: '1-2' },
          ],
        },
        {
          id: '2',
          title: 'b',
          value: '2',
          children: [
            { id: '2-1', title: 'b1', value: '2-1' },
            { id: '2-2', title: 'b2', value: '2-2' },
          ],
        },
      ],
    },
    id: 'treeValue',
  },
  {
    type: 'time',
    props: { label: '时间' },
    id: 'timeValue',
    innerComponentProps: { clearable: true, inputReadOnly: true },
  },
  { type: 'date', props: { label: '日期' }, id: 'dateValue', innerComponentProps: {} },
  { type: 'date-range', props: { label: '日期范围' }, id: 'dateRangeValue', innerComponentProps: {} },
  { type: 'input', props: { label: '名称', rules: [{ required: false, message: '请输入名称！', trigger: 'change' }] }, id: 'inputValue', innerComponentProps: {} },
  { type: 'number', props: { label: '数量' }, id: 'numberValue', innerComponentProps: {} },
] as searchOptionType[]